From fea6971a1dad03fcf5aa070ca80ef28bf516a177 Mon Sep 17 00:00:00 2001 From: "kaf24@scramble.cl.cam.ac.uk" Date: Wed, 24 Sep 2003 21:52:58 +0000 Subject: [PATCH] bitkeeper revision 1.462 (3f72123aFdH-T8rLWiFO2fSFpxZMYw) ldt.c: Propagate errors from Xen segment checking hypercall via Xenolinux syscall to application. --- xenolinux-2.4.22-sparse/arch/xeno/kernel/ldt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xenolinux-2.4.22-sparse/arch/xeno/kernel/ldt.c b/xenolinux-2.4.22-sparse/arch/xeno/kernel/ldt.c index 28ae39fd60..501ce94484 100644 --- a/xenolinux-2.4.22-sparse/arch/xeno/kernel/ldt.c +++ b/xenolinux-2.4.22-sparse/arch/xeno/kernel/ldt.c @@ -152,8 +152,7 @@ static int write_ldt(void * ptr, unsigned long bytecount, int oldmode) /* Install the new entry ... */ install: - HYPERVISOR_update_descriptor(phys_lp, entry_1, entry_2); - error = 0; + error = HYPERVISOR_update_descriptor(phys_lp, entry_1, entry_2); out_unlock: up_write(&mm->mmap_sem); -- 2.30.2